package DBLayer;

import ModelLayer.*;
import java.util.ArrayList;
/**
 * IFDBProduct.java
 * @author Brian Lassen
 * @version 22. Marts 2012
 */
public interface IFDBProduct
{
    public ArrayList<Product> getAllProducts(boolean retriveAssociation);
	public Product findProduct(String name, boolean retriveAssociation);
	public Product searchProductId(int id, boolean retriveAssociation);
	public Product searchProductName(String name, boolean retriveAssociation);
	public int createProduct(Product prod);
	public int updateProduct(Product prod);
	public int deleteProduct(int id);    
}
